import requests

url = 'https://12306.cn/mormhweb/'

headers = {
    'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Mobile Safari/537.36'
}
# verify 默认为True 验证SSL证书 ， 设置为False 不进行验证这样就只会爆红不会报错
r = requests.get(url=url, headers=headers, verify=False)



